<!DOCTYPE html>
<html>
<head>
  <title>Canvas写字例子</title>
</head>
<body>
  <canvas id="myCanvas" width="200" height="100"></canvas>
  <script>
    var canvas = document.getElementById('myCanvas');
    var ctx = canvas.getContext('2d');
    
    ctx.font = '30px Arial';
    ctx.fillText('Hello, Canvas!', 10, 50);
  </script>
</body>
</html>
